// app/types/chat.ts
export interface Role {
    id: number;
    name: string;
    icon: string;
    key: string;
    model_id: number;
    hello_msg: string;
}

export interface Model {
    id: number;
    name: string;
    value: string;
    power: number;
}

export interface ChatItem {
    chat_id: string;
    icon: string;
    role_id: number;
    model_id: number;
    title: string;
    edit: boolean;
    removing: boolean;
    pinned?: boolean;
}

export interface Message {
    type: string;
    id: string;
    icon: string;
    content: string;
    prompt?: string;
    created_at?: number;
    tokens?: {
        prompt_tokens: number;
        completion_tokens: number;
        total_tokens: number;
    };
    model?: string;
    role_id?: number;
    chat_id?: string;
}

export interface File {
    url: string;
    name: string;
    size: number;
    type: string;
    [key: string]: string | number;
} 